/*
 * @Author: 张小平
 * @Date:   2025-05-01 
 * @Email:  qqshuqian@163.com 
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import request from '@/framework-core/axios';
import website from '@/framework-core/config/website';
/**
 * 获取表的列信息
 */
export function fetchGenPage(query) {
  return request({
    url: website.baseUrl+'/api/sys/table/page',
    data: query,
    method: 'post'
  })
}

/**
 * 获取表的列信息
 */
export function pageTableColumn(query) {
  return request({
    url: website.baseUrl+'/api/sys/table/pageColumn',
    data: query,
    method: 'post'
  })
}


//生成代码
export function handleGenCode(query) {
  return request({
    url: website.baseUrl+'/api/sys/generator/code',
    method: 'post',
    data: query
  })
}


export function preview(query) {
  return request({
    url: website.baseUrl+'/api/sys/generator/preview',
    method: 'post',
    params: query
  })
}


